class <%= controller_class_name %>Controller < ApplicationController
  create_auto_rest
  
=begin  
  # The following is an example of all the configuration fields that can be
  # tweaked. AutoRest will try to find good defaults for all this, but
  # sometimes you will have to tweak the confguration by yourself
  # (specially when changing labels/titles)
  
  create_auto_rest do |opt|
<%= AutoRest::Configuration::ARDataContainer.generator_helper(controller_name) %>
  end
=end

=begin
private
  # Common methods for updating, saving and destroying resource.
  # May be redefined to change behavior.
  def ar_save_resource
    @resource.save
  end

  def ar_update_resource_attributes options= params[:resource]
    @resource.update_attributes(options)
  end

  def ar_destroy_resource
    @resource.destroy
  end
=end    
end
